python number of cpus

31

python number of cpus -

import multiprocessing

multiprocessing.cpu_count()

how to measure how much your of cpu your program is using in python -

$ pip install memory_profiler

Comments

Submit
0 Comments